﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;

namespace Modules.MQTT
{
    public class SendCommandQYTopic
    {
        public static string GetTopIc(string code)
        {
            return $"/hiot/{code}/request_setting";
        }
    }
    public class SendCommandQY<T>
    {
        /// <summary>
        /// 回复确认消息的发布主题
        /// </summary>
        public string confirmation_topic { get; set; }
        /// <summary>
        /// 请求设置类型，= device_cmd表示设备指令
        /// </summary>
        public string request_type { get; set; }
        /// <summary>
        /// 消息 ID，回复确认消息时带上用于平台确认
        /// </summary>
        public int message_id { get; set; }
        /// <summary>
        /// 消息 UUID，回复确认消息时带上用于平台确认
        /// </summary>
        public string message_uuid { get; set; }
        public T data { get; set; }
    }
    public class CommandData
    {
        /// <summary>
        /// 操作指令类型, = reboot_device表示重启设备
        /// </summary>
        public string cmd_type { get; set; }
    }
}
